home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Development / Source / MultiSession 1.04 Source / Core 27⁄June⁄1993 / CNonmodalDialog.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-09  |  421 b   |  18 lines  |  [TEXT/KAHL]

  1. /* CNonmodalDialog.c */
  2.  
  3. #include "CNonmodalDialog.h"
  4.  
  5.  
  6. void        CNonmodalDialog::MakeMyGrafPtr(LongPoint Start, LongPoint Extent)
  7.     {
  8.         Rect        BoundsRect;
  9.  
  10.         BoundsRect = RectOf(Start.x,Start.y,Start.x+Extent.x,Start.y+Extent.y);
  11.         MyGrafPtr = NewWindow(NIL,&BoundsRect,"\p",True,documentProc,(void*)-1,
  12.             False,(long)this);
  13.         if (MyGrafPtr == NIL)
  14.             {
  15.                 PRERR(ForceAbort,"NewWindow failed to allocate memory.");
  16.             }
  17.     }
  18.